<%@ page contentType="text/html;charset=UTF-8"%>
    <!-- 引用标签库 -->
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
 <%@ include file="/WEB-INF/views/include/default/js-css.jsp"%> 
<%-- <link rel="stylesheet" href="${ctxSource}/ama/css/style.default.css" type="text/css" />


<script type="text/javascript" src="${ctxSource}/ama/js/plugins/jquery-1.7.min.js"></script>
 <script type="text/javascript" src="${ctxSource}/ama/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="${ctxSource}/ama/js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="${ctxSource}/ama/js/plugins/jquery.uniform.min.js"></script>

 <script type="text/javascript" src="${ctxSource}/ama/js/custom/general.js"></script> 
  <script type="text/javascript" src="${ctxSource}/ama/js/custom/index.js"></script> --%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body class="loginpage">
	<div class="loginbox">
    	<div class="loginboxinner">
        	
            <div class="logo">
            	<h1 class="logo">Dms.<span>Background System</span></h1>
				<span class="slogan">后台管理系统</span>
            </div><!--logo-->
            
            <br clear="all" /><br />
            
            <div class="nousername">
				<div class="loginmsg">账户不正确.</div>
            </div><!--nousername-->
            
            <div class="nopassword">
				<div class="loginmsg">密码不正确.</div>
                <div class="loginf">
                    <div class="thumb"><img alt="" src="${ctxSource}/ama/images/thumbs/avatar1.png" /></div>
                    <div class="userlogged">
                        <h4></h4>
                        <a href="index.html">Not <span></span>?</a> 
                    </div>
                </div><!--loginf-->
            </div><!--nopassword-->
            
            <form id="login" action="/login" method="post">
            	
                <div class="username">
                	<div class="usernameinner">
                    	<input type="text" name="username" id="username" value="${username }"/>
                    </div>
                </div>
                
                <div class="password">
                	<div class="passwordinner">
                    	<input type="password" name="password" id="password" />
                    </div>
                </div>
                
                <button>登录</button>
                
                <div class="keep"><input type="checkbox" /> 记住密码</div>
            
            </form>
            
        </div><!--loginboxinner-->
    </div><!--loginbox-->
    
    <script type="text/javascript">
    	var error ='${error}';
    	if(error == 'nousername'){
    		nousername();
    	}
    	if(error == 'nopassword'){
    		nopassword();
    	}
    	
    </script>
</body>
</html>